#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QStackedWidget>
#include <QButtonGroup>

class Widget : public QWidget
{
	Q_OBJECT

public:
	Widget(QWidget *parent = nullptr);
	~Widget();

private:
	QWidget * navWidget;
	QWidget * mainWidget;
	QStackedWidget * stackedWidget;
	QButtonGroup * buttonGroup;

private:
	void InitNav();
	void initMain();

private slots:
	void button_clicked(); // 左侧导航栏被点击
};
#endif // WIDGET_H
